package artibella.text 
{
	import flash.text.AntiAliasType;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	/**
	 * ...
	 * @author pbordachar
	 */
	
	public class FormattedTextField extends TextField 
	{
		private var _fmt:TextFormat;
		private var _txt:String;
		
		public function FormattedTextField( txt:String, fmt:TextFormat ) 
		{
			_txt = txt;
			_fmt = fmt;
			
			_init();
		}
		
		private function _init():void
		{
			defaultTextFormat = _fmt;
			antiAliasType = AntiAliasType.ADVANCED;
			embedFonts = true;
			autoSize = "left";
			wordWrap = false;
			multiline = false;
			selectable = false;
			htmlText = _txt;
		}
		
	}

}